package com.gdpu.dto;

import com.gdpu.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.NonNull;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author:weiming
 * @Date:2021/5/28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PmsGoodDto implements Serializable {
    private Integer id;

    @ApiModelProperty(value = "商品货号")
    private String goodNo;

    @ApiModelProperty(value = "商品名称")
    @NotBlank
    private String goodName;

    @ApiModelProperty(value = "商品单价")
    private BigDecimal goodPrice;

    @ApiModelProperty(value = "上架->1,下架->0")
    @FlagValidator({"0","1"})
    private Integer isSale;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "分类路径")
    private String categoryIdPath;

    @ApiModelProperty(value = "商品主图")
    private String mainImage;

    @ApiModelProperty(value = "轮播图url")
    private String images;

    @ApiModelProperty(value = "商品描述")
    private String goodDesc;
}
